package io.chenglicun.modules.data.enums;

public enum FacilitiesAttributeEnums {

    COLLECTIVEASSETS("集体资产", "collectiveAssets"),
    PRIVATEASSETS("私营资产", "privateAssets"),
    WATERPUMPELECTRICITY("水泵电站（灌溉站）", "waterPumpElectricity"),
    SEWAGEPUMPINGSTATION("污水泵站", "sewagePumpingStation"),
    DRAINAGESTATION("排涝站", "drainageStation"),
    COLLECTIVEAGRICULTURALNURSING("农业看护房-集体", "collectiveAgriculturalNursing"),
    PRIVATEAGRICULTURALNURSING("农业看护房-私人", "privateAgriculturalNursing");

    /**
     * lable
     */
    private String lable;

    /**
     * value
     */
    private String value;

    private FacilitiesAttributeEnums(String lableStr, String valueStr) {
        this.lable = lableStr;
        this.value = valueStr;
    }

    public String getLable() {
        return lable;
    }

    public void setLable(String lable) {
        this.lable = lable;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public static FacilitiesAttributeEnums parseValue(String in) {
        for (FacilitiesAttributeEnums dataHouseTypeEnums : FacilitiesAttributeEnums.values()) {
            if (dataHouseTypeEnums.getValue().equals(in)) {
                return dataHouseTypeEnums;
            }
        }
        return null;
    }
}
